﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace QLNSTL
{
    public partial class ucNhanVien : UserControl
    {
        public ucNhanVien()
        {
            InitializeComponent();
            gridView1.GroupPanelText = "Nhấp đôi chuột để thêm mới nhân viên!";
        }
        ketnoi cnn = new ketnoi();
        private void ucNhanVien_Load(object sender, EventArgs e)
        {
            DataTable dt = cnn.getData("PRCSelectAllNHANVIEN");
            gcNhanVien.DataSource = dt;
        }

        private void ribIn_Click(object sender, EventArgs e)
        {

        }

        private void ribSua_Click(object sender, EventArgs e)
        {

        }

        private void ribXoa_Click(object sender, EventArgs e)
        {

        }

        private void gcNhanVien_DoubleClick(object sender, EventArgs e)
        {
            dialogThemNV dialog = new dialogThemNV();
            if (dialog.ShowDialog() == DialogResult.Cancel)
            {
                ucNhanVien_Load(sender, e);
            }
        }

        private void gcNhanVien_Click(object sender, EventArgs e)
        {

        }
    }
}
